package controller;



import model.AdminDAO;


import com.opensymphony.xwork2.ActionSupport;

public class TestAction extends ActionSupport {

    /**  serialVersionUID. */
    private static final long serialVersionUID = 1L;
    
    /**  */
    private String test;
    
    private String button;
    
    public String execute() {
        System.out.println(test + " AAaaaa"); 
        System.out.println("cccccccccccccccccc");
        AdminDAO adminDAO = new AdminDAO();
        
        int a;
        try {
            a = adminDAO.getList().size();
            System.out.println("number: "+a );
        } catch (Exception ex) {
            // TODO Auto-generated catch block
            ex.printStackTrace();
        }
        
        
        
        System.out.println("cccccccccccccccccc");
        
        return "SUCCESS";
    }

    /**
     * Get value of test.
     * @return the test
     */
    public String getTest() {
        return test;
    }

    /**
     * Set the value for test.
     * @param test the test to set
     */
    public void setTest(String test) {
        this.test = test;
    }

    /**
     * Get value of button.
     * @return the button
     */
    public String getButton() {
        return button;
    }

    /**
     * Set the value for button.
     * @param button the button to set
     */
    public void setButton(String button) {
        this.button = button;
    }
    
    
}
